package com.gton.lpl.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @description: 分页顶层抽取
 * @author: GuoTong
 * @createTime: 2022-08-04 18:57
 * @since JDK 1.8 OR 11
 **/

@Data
public class PageRespDto<T> {

    @ApiModelProperty(value = "当前页",hidden = true)
    private int pageNum = 1;

    @ApiModelProperty(value = "每页显示条数",hidden = true)
    private int pageSize = 10 ;

    @ApiModelProperty(value = "分页返回数据",hidden = true)
    private List<T> records;

    @ApiModelProperty(value = "总条数",hidden = true)
    private Long total;

}
